package com.yugao.fintech.draper.demos.message;

import com.yugao.fintech.draper.hazelcast.mq.AbstractGroupMessage;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;

@ToString
@NoArgsConstructor
@AllArgsConstructor
public class DemoGroupMessage extends AbstractGroupMessage {

	private String msg;

	private LocalDateTime dateTime;

	/**
	 * 获取消费者组
	 * @return 消费者组名称
	 */
	@Override
	public String getGroup() {
		return "DemoGroup";
	}

}
